.sidebar {
    width: 280px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.category-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.category-list {
    list-style: none;
}

.category-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:hover {
    background: #f8fafc;
}

.category-item.active {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
}

.category-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.active .category-count {
    background: #0284c7;
    color: white;
}

.category-management {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.add-category {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-category input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* 通用按钮样式，如果App.tsx中没有，需要在这里定义 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #0284c7;
    color: white;
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}
